<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>father</title>
  </head>

  <body>
    <iframe src="./2children.html" id="iframe" frameborder="0"></iframe>
    <script>
      /*         window.onload = function () {
          let p = '12345678'
          document
            .getElementById('iframe')
            .contentWindow.postMessage(p, '*')
        } */

      function filterArr(allArr, needDelArr) {
        let newArr =  allArr.filter(x => false)
        return newArr
      }

      let allBtn = [
           '新增续页',
        '新增通用续页',
        '新增通用页',
        '新增部件',
        '插入通用页',
        '插入部件',
        '重命名报告',
        '删除报告页',
        '新增PDF页',
        '插入同级PDF页'
      ]

      let noSee = [
        '新增续页',
        '新增通用续页',
        '新增通用页',
        '新增部件',
        '插入通用页',
        '插入部件',
        '新增PDF页',
        '插入同级PDF页'
      ]

      console.log(filterArr(allBtn, noSee))
    </script>
  </body>
</html>
